interface CancelAppointmentAPIResData {
  code: number
  data: null
  msg: string
  time: string
}

interface CancelAppointmentAPIData {
  id: string
  reason: string
  reason_remark: string
}

export function cancelAppointmentAPI(data: CancelAppointmentAPIData, token: string) {
  return httpInstance.post<CancelAppointmentAPIResData, CancelAppointmentAPIData>(
    '/api/reserve_order/cannel',
    data,
    { headers: { token } },
  )
}
